package com.ezcolour.ticket.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BaseService<T> {

    T findById(Long id);

    T save(T t);

    void delete(T t);

    void deleteById(Long id);

    void deleteByIds(List<Long> ids);

    List<T> findAll();

    List<T> findAllByIds(List<Long> ids);

    Page<T> findAll(Pageable pageable);

    Long count();
}
